import lombok.AllArgsConstructor;

/**
 * 水果类
 */
@AllArgsConstructor
public class Fruit {

    /**
     * 水果编号
     */
    private String code;

    /**
     * 水果名称
     */
    private String name;

    /**
     * 单价
     */
    private Double price;

    /**
     * 折扣,不打折=1,8折=0.8
     */
    private Double weight;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }
}
